package com.it.test;

import com.it.tx.TxConfig;
import com.it.tx.UserService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class IOCTest_Tx {


    @Test
    public void test1() {
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(TxConfig.class);

        UserService userService = app.getBean(UserService.class);
        userService.insertUser();
    }


}
